#include "bubblesort.h"

void test_case2() {
    int input_array[] = {
        67, 98, 101, 89, 3, 35, 12, 43, 9, 13,
    };
    int groundtruth1[] = {
        3, 9, 12, 13, 35, 43, 67, 89, 98, 101,
    };

    bubble_sort(input_array, 10);
    for (int i = 0; i < 10; i++) {
        assert(input_array[i] == groundtruth1[i]);
    }
    input_array[2] = 28;
    input_array[6] = 43;
    int groundtruth2[] = {
        3, 9, 13, 28, 35, 43, 43, 89, 98, 101,
    };
    bubble_sort(input_array, 10);
    for (int i = 0; i < 10; i++) {
        assert(input_array[i] == groundtruth1[i]);
    }
}
